<template>
<div>

  <table id="tab" border="1"  cellspacing="0" cellpadding="0" >
    <tr>
      <td>客户名称:<br><b>{{tabledate.client}}</b></td>
      <td>案号:<br><b>{{tabledate.caseNo}}</b></td>
      <td>实收金额:<br><b>{{tabledate.casePaidsal}}元</b></td>
    </tr>
    <tr>
      <td>发票抬头:<br><b>{{tabledate.cwInvoiceTitle}}</b></td>
      <td>开票金额:<br><b>{{tabledate.cwInvoiceMoney}}</b></td>
      <td>开票项目:<br><b>{{tabledate.typeName}}</b></td>
    </tr>

    <tr>
      <td>开具类型:<br><b>{{(tabledate.cwOpenType=='0'?'个人':'企业')}}</b></td>
      <td>发票类型:<br><b>{{(tabledate.cwInvoiceType=='1'?'增值税专用发票':(tabledate.cwInvoiceType=='2'?'增值税普通发票':'通用机打发票'))}}</b></td>
      <td>申请日期:<br><b>{{tabledate.cwApplicationDate}}</b></td>
    </tr>
    <tr>
      <td>纳税人识别号:<br><b>{{tabledate.cwTaxpayerIdentityNumber}}</b></td>
      <td>税务登记证副本复印件:<br><b>{{tabledate.recordFileId}}</b></td>
      <td>基本户开户银行:<br><b>{{tabledate.cwBasicBankofdeposit}}</b></td>

    </tr>
    <tr>
      <td>基本户开户账号:<br><b>{{tabledate.cwAccountNumber}}</b></td>
      <td>注册场所地址:<br><b>{{tabledate.cwRegisteredAddress}}</b></td>
      <td>注册固定电话:<br><b>{{tabledate.cwFixedlineTelephone}}</b></td>

    </tr>
    <tr>
      <td colspan="3">申请备注:<br><b>{{tabledate.cwApplicationRemark}}</b></td>
    </tr>
    <tr>
      <td>开票状态:<br><b>{{ (tabledate.cwInvoiceStatus=='Y'?'已开票':'未开票')}}</b></td>
      <td>发票号:<br><b>{{tabledate.cwInvoiceNumber}}</b></td>
      <td>开票日期:<br><b>{{tabledate.cwInvoiceDate}}</b></td>
    </tr>
    <tr>
      <td colspan="3">开票备注:<br><b>{{tabledate.cwInvoiceRemark}}</b></td>
    </tr>

  </table>
</div>
</template>

<script>
export default {
  name: "CwInvoiceGET.vue",
  data(){
     return {
       tabledate:{}
    }
  },methods:{
      get(){
        this.$http.get(`/cwInvoice/${this.$route.query.id}`).then(res=>{
          this.tabledate=res.data.data[0]
        })
      }

  },created() {
    this.get();
  }
}
</script>

<style scoped>
#tab{
  border: whitesmoke solid 1px;
     height: 90%;
      width: 90%;
}
</style>